﻿import QtQuick 2.0

Rectangle {
    id:rootView
    property color borderColor: "red"
//    anchors.top: parent.top
//    anchors.bottom: parent.bottom
    // border.color: borderColor
    color: Qt.rgba(Math.random(),Math.random(),Math.random(),0.8);
    //height: myModel.count*40+20
    Text {
        id: name
        text: qsTr("text")
        height: 60
        horizontalAlignment: Text.AlignHCenter;
        width: rootView.width
        verticalAlignment: Text.AlignVCenter
        font.pixelSize: 50
        clip: true
    }
    function setText(idx){
        name.text =  idx;
    }
    function getText(){
        return name.text;
    }
}
